package com.resataurant.Service.Impl;

import com.resataurant.Dao.AdminDao;
import com.resataurant.Entity.Dish;
import com.resataurant.Entity.User;

import java.util.List;

public class UserServiceImpl implements  com.resataurant.Service.UserService{

    public List<Dish> searchDish(String dishName) {
        return new AdminDao().searchDish(dishName);
    }

    public List<Dish> searchDish() {
        return new AdminDao().searchDish();
    }

    public Dish searchDishById(String id) {
        return new AdminDao().searchDishById(id);
    }

    public int register(User user) {
        return new AdminDao().register(user);
    }
}
